class ClassName:
    'className 的基类'
    empCount = 0

    def __init__(self,name,salary):
        self.name = name
        self.salary = salary
        ClassName.empCount +=1

    def displayCount(self):
        print('Total Employee %d' %ClassName.empCount)

    def displayEmployee(self):
        print("Name : " ,self.name, ", Salary = ",self.salary)


"创建 Employee 类的第一个对象"
emp1 = ClassName("Zara", 2000)
"创建 Employee 类的第二个对象"
emp2 = ClassName("Manni", 5000)
emp1.displayEmployee()
emp2.displayEmployee()
print("Total Employee %d" % ClassName.empCount)

print("Class.doc = " , ClassName.__doc__)





class Child(ClassName):
    def __init__(self):
        print("子类")

c = Child()
c.displayCount()